package com.hotel.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hotel.entity.Category;
import com.hotel.entity.Dish;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hotel.vo.CategoryVO;
import com.hotel.vo.DishVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 菜品管理 服务类
 * </p>
 *
 * @author Lin
 * @since 2022-05-30
 */
public interface DishService extends IService<Dish> {

    IPage<Dish> getDishList(String id, Integer level, String name, Integer status, Integer current, Integer size);

    int deleteDishById(String id);

    String upload(MultipartFile file, String pathName);

    int addDish(DishVO dishVO);

    Dish editDish(String id);

    int updateDish(DishVO dishVO);

    int updateStatus(Long id,Integer status);


}
